<template>
  <div @click="goBack" class="btn-back">
    返回
  </div>
</template>

<script>
export default {
  methods:{
    goBack(){
      this.$router.go(-1)
    }
  }
}
</script>

<style>
.btn-back{
  padding: 20px 30px;
  color: #fff;
  background-color: blueviolet;
  border-radius: 10px;
  text-align: center;
  margin-top: 20px;
}
</style>